#ifndef __STATE_MACHINE_WORK_WITH_51_H__
#define __STATE_MACHINE_WORK_WITH_51_H__
#include <logbase.h>
#include <systime.h>

#define staMcEnumGet(tname) staMcDoId_##tname
#define staMcFuncUpGet(tname) staMcFuncUp_##tname

typedef struct
{
    int8_t state;
    int8_t substat; //
    sysTmTp runtmr;
}staMcCtxtStc;// state machine context struct


void staMcMgr51InitDemo();
void staMcMgr51UpDemo();
void staMcMgr51QuitDemo();
int staMcMgr51TranstDemo(int nextStateId);


#endif